package org.raymond.iworks.study.orders.entity;

import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.raymond.iworks.repository.entity.AbstractEntity;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = false)
@Entity
@Table(name="t_inventories_seckill_book")
public class TInventoriesSeckillBook extends AbstractEntity {
    @EqualsAndHashCode.Include
    @Id
    @GenericGenerator(name = ID_GENERATOR_NAME, strategy = ID_GENERATOR)
    @GeneratedValue(generator = ID_GENERATOR_NAME)
    private Long id;
    @Column(name="product_id")
    private Long productId;
    @Column(name="user_id")
    private Long userId;
}
